package vi.aber.libproxy.sip;

/**
 * Created by aber on 2017/3/21.
 */

/**
 * Sip Method, there are six methods:
 * {@link Method#REGISTER} for registering contact information,
 * {@link Method#INVITE},{@link Method#ACK},{@link Method#CANCEL}
 * for setting up sessions, {@link Method#BYE} for terminaing sessions,
 * and {@link Method#OPTIONS} for querying servers about their
 * capabilities.
 * SIP extensions, documented in standards track RFCs, may define
 * additional methods.
 * */
public enum Method {
    REGISTER("REGISTER"),
    INVITE("INVITE"),
    ACK("ACK"),
    CANCEL("CANCEL"),
    BYE("BYE"),
    OPTIONS("OPTIONS");

    private String method;

    Method(String method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return method;
    }
}
